package org.shiro.demo.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="m_product_manifest")
public class ProductManifest {
	
	public int amount;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	/** 主键 */
	private long id;

	private boolean isIn;
	
	@Temporal(TemporalType.TIMESTAMP)
	private Date ManifestTime;

	@ManyToOne
	@JoinColumn(name = "product_id")
	private Product product;


	public int getAmount() {
		return amount;
	}

	public long getId() {
		return id;
	}

	public Date getManifestTime() {
		return ManifestTime;
	}

	public Product getProduct() {
		return product;
	}

	public boolean isIn() {
		return isIn;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}


	public void setId(long id) {
		this.id = id;
	}

	public void setIn(boolean isIn) {
		this.isIn = isIn;
	}

	public void setManifestTime(Date manifestTime) {
		ManifestTime = manifestTime;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

}
